import { useEffect, useState } from 'react'

import './App.scss'

function App() {

 let [counte,setcounte]=useState(10)
 const add=()=>{
  setcounte(counte+1)
 }
 const end=()=>{
  setcounte(counte-1)
 }
 useEffect(()=>{

 },[counte])
  return (
    
     <div>
       <button onClick={add}>++</button>
       <h3>{counte}</h3>
        <button onClick={end}>--</button>
     </div>
  
  )
}

export default App
